﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;
using VOL.Entity.DomainModels.BasicData;
using VOL.SmartMecial.Infrastructure;
using VOL.SmartMecial.IServices.BasicData;

namespace VOL.SmartMecial.Services.BasicData
{
    /// <summary>
    /// 添加护理单元病房分配
    /// </summary>
    public class AddNursingUnitService : IAddNursingUnitService
    {
        private readonly IBaseRepository<NursingUnitWardModel> _baseRepository;

        public AddNursingUnitService(IBaseRepository<NursingUnitWardModel> baseRepository) 
        {
            this._baseRepository = baseRepository;
        }
        public async Task<int> AddNursingUnitWard(NursingUnitWardModel model)
        {
            
            var  result= await _baseRepository.AddAsync(model);
            return result;
        }
    }
}
